package com.twu.biblioteca;

public class LibraryData
{
    public void MovieList(Movie[] movieDetails)
    {
        movieDetails[1] = new Movie("Sholay",1975,"Ramesh Sippy","N/A",10);
        movieDetails[2] = new Movie("Slumdog Millionaire",2008,"Danny Boyle","8.1",10);
        movieDetails[3] = new Movie("Rang de Basanti",2006,"Omprakash Mehra","8.2",10);
        movieDetails[4] = new Movie("Chak de India",2007,"Shimit Aman","7.9",10);
        movieDetails[5] = new Movie("Jodhaa Akbar",2008,"Ashutosh Govarikar","7.7",10);
        movieDetails[6] = new Movie("Taare Zameen Par",2007,"Amir Khan","8.2",10);
        movieDetails[7] = new Movie("Guide",1965,"Vijay Anand","8.0",10);
        movieDetails[8] = new Movie("Dor",2006,"Nagesh Kukunoor","8.5",10);
        movieDetails[9] = new Movie("The Shawshank Redemption",1994,"Frank Darabont","9.2",10);
        movieDetails[10] = new Movie("The Dark Knight",2008,"Christopher Nolan","8.9",10);
        movieDetails[11] = new Movie("Inception",2010,"Christopher Nolan","N/A",10);
        movieDetails[12] = new Movie("Forrest Gump",1994,"Robert Zeneckis","8.7",10);
        movieDetails[13] = new Movie("Seven Samurai",1954,"Akira Kurosawa","8.7",10);
        movieDetails[14] = new Movie("Memento",2000,"Christopher Nolan","8.5",10);
        movieDetails[15] = new Movie("It's a Wonderful Life",1946,"Frank Capra","8.6",10);

    }

    public void BookList(Book[] bookDetails)
    {
        bookDetails[1] = new Book("Dark Market","Misha Glenny","True Crime",31);
        bookDetails[2] = new Book("Venice Edited","Heather Ryes","Travel Guide",10);
        bookDetails[3] = new Book("The Sea of Innocence","Kishwar Desai","Thrillers",20);
        bookDetails[4] = new Book("Perfect","Rachel Joyce","Fiction",15);
        bookDetails[5] = new Book("The Scarlet Letter","Nathaniel Hawthorne","Literature",35);
    }

    public void getCustomerDetail(CustomerDetails[] customerDetails)
    {
        customerDetails[1] = new CustomerDetails("Pallavi","pallavi@gmail.com","123456","111-1111","pallavi",1,false);
        customerDetails[2] = new CustomerDetails("Sunita","sunita@gmail.com","2345678","111-1112","sunita",2,false);
        customerDetails[3] = new CustomerDetails("Droan","droan@gmail.com","098656262","111-1113","droan",3,false);
        customerDetails[4] = new CustomerDetails("Prince","prince@gmail.com","98738232","111-1114","prince",4,false);
    }

    public void showBookList(Book[] book)
    {
        System.out.printf("%-20s %-20s %-20s\n","Book","Author","Genre");
        for (int i=1;i<6;++i)
        {
            System.out.printf("%-20s %-20s %-20s\n", book[i].bookName,book[i].author,book[i].genre);
        }
    }

    public void showMovieList(Movie[] movie)
    {
        System.out.printf("%-30s %-20s %-25s %-30s\n","Movie","Year","Director","Ratings");
        for (int i=1;i<16;++i)
        {
            System.out.printf("%-30s %-20s %-25s %-30s\n", movie[i].movieName,movie[i].yearOfRelease,movie[i].director,movie[i].ratings);
        }
    }

}
